<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<ui:composition template="/WEB-INF/templates/BasicTemplate.xhtml">
    <ui:define name="content">
        <p:layout fullPage="true" id="layout">
		    <p:layoutUnit position="west" header="Menu" collapsible="false">
		    	<h:form>
		    		<p:menu model="#{loginUsuarioBean.model}" />
		    	</h:form>
		    </p:layoutUnit>
			<p:layoutUnit position="east" header="Bienvenido #{loginUsuarioBean.persona.nombre}" collapsible="false">
				<h:form>
					<p:separator />
					<p:commandButton value="Logout" action="#{loginUsuarioBean.logoutUser}"></p:commandButton>
					<p:separator />
					<p:commandButton value="Modificar perfil" action="#{loginUsuarioBean.modificarUsuarioBoton}"></p:commandButton>
				</h:form>
				<p:graphicImage style="width:70%; position:absolute; left:15%; top:80%;" library="images" name="LogoSemiTrans.jpg" />
			</p:layoutUnit>
		    <p:layoutUnit position="center">
		    	<h:form>
		        	<p:growl id="messages"/>
		    	</h:form>
		    </p:layoutUnit>
		</p:layout>
    </ui:define>
</ui:composition>
</html>